import {AxiosResponse} from "axios";
import request from "./request";

const getWaitedReviewPics = (): Promise<AxiosResponse<{ "pics": { "id": number, "image_name": string, "url": string }[] }>> => {
    return request({
        url: "/get_waited_review_pics_info",
        method: "get",
    });
};
const deletePicByID = (id: number): Promise<AxiosResponse<{}>> => {
    return request({
        url: "/delete_pic_by_id",
        method: "get",
        params: {
            id: id
        }
    });
}
const passPicByID = (id: number, image_name: string): Promise<AxiosResponse<{}>> => {
    return request({
        url: "/pass_pic_by_id",
        method: "get",
        params: {
            id: id,
            image_name: image_name
        }
    });
}
export {getWaitedReviewPics, deletePicByID, passPicByID};
